import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import HelloVue from '@/components/HelloVue'
import Demo from '@/components/demo/Demo'
import TestModel from '@/components/iviewDemo/model/TestModel'
import TestUpload from '@/components/iviewDemo/model/TestUpload'
import Upload from '@/components/elementDemo/upload/Upload'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/hellovue',
      name: 'HelloVue',
      component: HelloVue
    },
    {
      path: '/demo',
      name: 'demo',
      component: Demo
    },
    {
      path: '/testModel',
      name: 'TestModel',
      component: TestModel
    },
    {
      path: '/testUpload',
      name: 'TestUpload',
      component: TestUpload
    },
    {
      path: '/upload',
      name: 'Upload',
      component: Upload
    }
  ]
})
